// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from './request'

/**
 * @description 列表
 */
export function bannerList(data) {
    return request.get('mings/lunbo/lst', data)
}
/**
 * @description 新增表单
 */
export function bannerAdd(data) {
    return request.post('mings/lunbo/create',data)
}
/**
 * @description 删除
 */
export function bannerDelete(data) {
    return request.get('mings/lunbo/delete/'+data)
}
/**
 * @description 改状态
 */
export function bannerChangeStatus(data) {
    return request.get('mings/lunbo/status', data)
}

// 获取房间列表

export function roomList(data) {
  return request.get('mings/room/lst', data)
}


// 获取房间详情
export function roomDetail(id) {
  return request.get(`mings/room/detail/${id}`);
}

// 新增房间
export function roomCreate(data) {
  return request.post('mings/room/create', data);
}


// 更新房间
export function roomUpdate(id, data) {
  return request.post(`mings/room/update/${id}`, data);
}

// 删除房间
export function roomDelete(id) {
  return request.delete(`mings/room/delete/${id}`);
}
